package dancetiktokmodelmysql

import (
	"gorm.io/gorm"
	"time"
)

// DanceGiftConfig 系统接口表
type DanceGiftConfig struct {
	Id                  int64  `gorm:"primaryKey;autoIncrement;comment:id" json:"api的id"`
	ClientTranslationId int    `json:"clientTranslationId" gorm:"column:client_translation_id;type:int;default:0;not null;comment:和客户端关联关系的id,这个字段不能通过管理后台改"`
	GiftAssembleNumber  int    `json:"giftAssembleNumber" gorm:"column:gift_assemble_number;type:int;default:0;not null;comment:多少数量为聚合数量"`
	Name                string `json:"name" gorm:"column:name;type:varchar(256);not null;default:'';comment: 礼物名字"`
	GiftValue           int    `json:"giftValue" gorm:"column:gift_value;type:int;default:0;not null;comment:礼物价值"`
	Icon                string `json:"icon" gorm:"column:icon;type:varchar(256);not null;default:'';comment: 礼物图片"`
	GiftId              string `json:"giftId" gorm:"column:gift_id;type:varchar(256);not null;default:'';comment: 礼物id"`
	//散装礼物经验值
	PersonalBuffScattered int `json:"personalBuffScattered" gorm:"column:personal_buff_scattered;type:int;default:0;not null;comment:散装礼物个人buff加成"`
	TeamBuffScattered     int `json:"teamBuffScattered" gorm:"column:team_buff_scattered;type:int;default:0;not null;comment:散装礼物团队buff加成"`
	FoeTeamBuffLess       int `json:"foeTeamBuffLess" gorm:"column:foe_team_buff_less;type:int;default:0;not null;comment:散装敌方阵营减加成"`
	KeepRoundNumBuff      int `json:"keepRoundNumBuff" gorm:"column:keep_round_num_buff;type:int;default:0;not null;comment:散装buff持续回合数"`
	KeepRoundNumAuto      int `json:"keepRoundNumAuto" gorm:"column:keep_round_num_auto;type:int;default:0;not null;comment:散装自动答题持续回合数"`
	ExperienceScattered   int `json:"experienceScattered" gorm:"column:experience_scattered;type:int;default:0;not null;comment:散装礼物经验值"`
	//聚合礼物经验值
	PersonalBuffAssemble     int   `json:"personalBuffAssemble" gorm:"column:personal_buff_assemble;type:int;default:0;not null;comment:聚合礼物个人buff加成"`
	TeamBuffAssemble         int   `json:"teamBuffAssemble" gorm:"column:team_buff_assemble;type:int;default:0;not null;comment:聚合礼物团队buff加成"`
	KeepRoundNumBuffAssemble int   `json:"keepRoundNumBuffAssemble" gorm:"column:keep_round_num_buff_assemble;type:int;default:0;not null;comment:聚合buff持续回合数"`
	KeepRoundNumAutoAssemble int   `json:"keepRoundNumAutoAssemble" gorm:"column:keep_round_num_auto_assemble;type:int;default:0;not null;comment:聚合礼物自动答题持续回合数"`
	FoeTeamBuffLessAssemble  int   `json:"foeTeamBuffLessAssemble" gorm:"column:foe_team_buff_less_assemble;type:int;default:0;not null;comment:散装敌方阵营减加成"`
	ExperienceAssemble       int   `json:"experienceAssemble" gorm:"column:experience_assemble;type:int;default:0;not null;comment:聚合礼物经验值"`
	GiftScore                int64 `json:"giftScore" gorm:"column:gift_score;type:bigint;default:0;not null;comment:每个礼物对应的积分"`        //
	GiftCpScore              int64 `json:"giftCpScore" gorm:"column:gift_cp_score;type:bigint;default:0;not null;comment:每个礼物对应Cp的积分"` //

	CreatedAt time.Time      `json:"created_at" gorm:"column:created_at;type:datetime"`
	UpdatedAt time.Time      `json:"updated_at" gorm:"column:updated_at;type:datetime"`
	DeletedAt gorm.DeletedAt `gorm:"index;type:datetime" json:"-"`
}
